package cn.kgc.springboot06.service;

import cn.kgc.springboot06.entity.FileVO;
import cn.kgc.springboot06.mapper.FileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/5/23
 */
@Service
public class FileServiceImpl implements FileService {
    @Autowired
    private FileMapper fileMapper;
    @Override
    public Integer addFile(FileVO fileVO) {
        Integer integer = fileMapper.addFile(fileVO);
        return integer;
    }

    @Override
    public List<FileVO> selectAll() {
        List<FileVO> fileVOS = fileMapper.selectAll();
        return fileVOS;
    }
}
